package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author baibf
 * @description 创建状态常量Dto
 * @date 2022/6/10 15:56
 **/
@Data
public class CreateStateInvariantDTO extends ProjectIdDTO {

    @Schema(title = "父级模型id，此时的父级是指画布上状态常量放置的模型")
    private String parentId;

    @NotBlank(message = ParamErrorConstants.NO_METACLASS)
    @Schema(title = "模型类型")
    private String metaclass;

    @Schema(title = "模型默认名称")
    private String defaultName;

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    @Schema(title = "项目id")
    private String projectId;

    @NotNull(message = ParamErrorConstants.NO_TYPE)
    @Schema(title = "模型类别 0：普通模型 1：关系")
    private Integer type;

    @Schema(title = "应用构造型")
    private List<String> applyStereotypes;

    @Schema(title = "弹窗中选择或创建的state模型Id")
    private String stateId;
}
